package com.frxuexi.mine.room

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.frxuexi.mine.UserRepository
import com.frxuexi.mine.UserViewModel

class UserViewModelFactory(private val repository: UserRepository):ViewModelProvider.NewInstanceFactory() {
    override fun <T : ViewModel> create(modelClass: Class<T>): T {
        return UserViewModel(repository) as T
    }
}